<div id="information">
<br /><br />
<?php
$sel_test = mysql_query('SELECT * FROM test WHERE module = "'.$_GET['name'].'"');

if(mysql_num_rows($sel_test)==0){
   echo '<p class="error">Няма тестове към този самоучител!</p>';
} else {
while($row_test = mysql_fetch_assoc($sel_test)){
    if($_SESSION['username']=="admin"){
    ?>
	<a href="<?php echo 'test.php?name='.$_GET['name'].'&amp;mode='.delete.''; ?>" style="float: right; margin-right: 5px;"><img src="../img/delete.png" /></a>
	<?php } ?>
	<div id="test_users">
	<?php
	echo '<p style="float: right; margin-right: 10px;">Добавен на '.date('d/m/Y', $row_test['date_added']).' от <b>'.$row_test['from_who'].'</b></p>';
	echo '<p><a href="see_test.php?id='.$row_test['test_id'].'&amp;name='.$_GET['name'].'" class="f" style="font-size: 15px; font-weight: bold;">'.$row_test['test_name'].'</a>';
	echo '</p>';
	echo '<p>'.$row_test['test_descr'].'</p>';
	?>
	</div>
    <br />
	<?php
}
}
?>
</div>